package com.woniuxy.woniuticket.pojo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.gson.annotations.SerializedName;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.math.BigDecimal;
import java.util.Date;
@Document(indexName = "woniuticket",type = "schedule",shards = 1,replicas = 0)
public class CinemaSchedule {
    @Id
    private Integer id;
    //SerializedName

    private Integer moviesId;

    private CinemaMovies cinemaMovies;

    private Integer hallId;

    private BigDecimal scheduleprice;

    private Date begintime;

    private Date endtime;

    private Integer flag;


    public CinemaMovies getCinemaMovies() {
        return cinemaMovies;
    }

    public void setCinemaMovies(CinemaMovies cinemaMovies) {
        this.cinemaMovies = cinemaMovies;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getMoviesId() {
        return moviesId;
    }

    public void setMoviesId(Integer moviesId) {
        this.moviesId = moviesId;
    }

    public Integer getHallId() {
        return hallId;
    }

    public void setHallId(Integer hallId) {
        this.hallId = hallId;
    }

    public BigDecimal getScheduleprice() {
        return scheduleprice;
    }

    public void setScheduleprice(BigDecimal scheduleprice) {
        this.scheduleprice = scheduleprice;
    }

    public Date getBegintime() {
        return begintime;
    }

    public void setBegintime(Date begintime) {
        this.begintime = begintime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }


    @Override
    public String toString() {
        return "CinemaSchedule{" +
                "id=" + id +
                ", moviesId=" + moviesId +
                ", cinemaMovies=" + cinemaMovies +
                ", hallId=" + hallId +
                ", scheduleprice=" + scheduleprice +
                ", begintime=" + begintime +
                ", endtime=" + endtime +
                ", flag=" + flag +
                '}';
    }
}